<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>倒计时</title>
	</head>
	<body>
		<a id="theTime"></a>
		<script type="text/javascript">
			var time = parseInt(10);
			setInterval(function fun() {
				document.getElementById("theTime").innerHTML = time;
				time--;			
				if (time == 0) {
					window.location.replace("https://www.baidu.com/");
				}
			}, 1000);
		</script>
	</body>
</html>
